<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Article extends Model
{
    use SoftDeletes;
    //自定义表名
    protected $table = 'article';
    // laravel 默认时间戳字段 updated_at\created_at
    // 自定义时间戳字段
    const CREATED_AT = 'create_at';
    const UPDATED_AT = 'update_at';
    const DELETED_AT = 'delete_at';

    // 指定时间戳字段 默认是年月日
    protected $dateFormat = "U";//时间戳、
}
